package com.source.barcodeMachineStatus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author fengq
 * @since 2021-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BarcodeMachineStatus对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class BarcodeMachineStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角标机监控表的id")
    @TableId(value = "id" ,type = IdType.ASSIGN_ID )
    private String id;


    @ApiModelProperty(value = "脚标机编号")
    @TableField("barcodeMachineNumber")
    private String barcodeMachineNumber;

    @ApiModelProperty(value = "登录时间")
    @TableField("loginDate")
    private Date loginDate;

    @ApiModelProperty(value = "在线状态(0:离线，1:正常，2：卡纸，3：缺纸)")
    private String state;

    @ApiModelProperty(value = "条码剩余数量")
    @TableField("barcodeSurplus")
    private Integer barcodeSurplus;

    @ApiModelProperty(value = "条码剩余数量阈值（超出阈值范围要给出警告提示）")
    private Integer threshold;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private String userId;

    @ApiModelProperty(value = "下线时间")
    @TableField("offlineTime")
    private Date offlineTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;


}
